package com.byzoro.mapper;

import com.byzoro.pojo.Models;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@Component
@Mapper
public interface ModelsMapper {
    List<Models> list(@Param("offset") int offset, @Param("limit") int limit);
    int count();
    int create(Models model);
    int update(Models model);
    int delete(int id);
    Models detail (int id);
}
